package com.twu.biblioteca;

public class MembershipState implements State {

    public State executeStateBehaviour(UserInterface userInterface, Database database) {

        if (LoginState.currentUser() == null) {
            userInterface.write(new Output("Please Talk to a Librarian. Thank You."));
            return new MenuState();
        }

        userInterface.write(new Output(LoginState.currentUser()));

        return new MenuState();

    }
}
